#!/bin/bash

# Performance test for HBase row key design (sequential vs random)
# @author dino.keco
# @email dino.keco@gmail.com
# @date 2012.06.12

is_random_rowkey=( true false )
cf_number=1
qf_number=100
table_name=rk_table
num_of_mappers=2
records_per_mapper=100

for is_random in "${is_random_rowkey[@]}"
do
hadoop jar hbase-showcase-1.0.jar ba.keco.hbase.rowkey.MapReduceTest -Dhbase.showcase.cf.number=${cf_number} -Dhbase.showcase.qf.number=${qf_number} -Dhbase.showcase.table.name=${table_name} -Dhbase.showcase.input.records=${records_per_mapper} -Dhbase.showcase.mappers=${num_of_mappers} -Dhbase.showcase.rowkey.israndom=${is_random}
done
